package com.zhenfan.pattern;

/**
 * 策略工厂
 *
 * @author wangmh
 * @create 2018-11-08 14:59
 **/
public class StrategyFactory {

    public static SaleStrategy getDiscountStrategy() {
        return DiscountStrategy.getInstance();
    }

    public static SaleStrategy getFullReductionStrategy() {
        return FullReductionStrategy.getInstance();
    }

    public static SaleStrategy getNormalStrategy() {
        return NormalStrategy.getInstance();
    }
}
